//
//  OwnerModel.m
//  PropertyMananger
//
//  Created by bh on 17/1/12.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "OwnerModel.h"

@implementation OwnerModel

-(NSMutableArray *)roomInfoArray{

    if (!_roomInfoArray) {
        _roomInfoArray = [[NSMutableArray alloc]init];
    }
    return _roomInfoArray;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if([key isEqualToString:@"OwnerRoomInfoData"]){
        for (NSDictionary * dict in value) {
            OwnerRoomInfoData * ownerRoomInfoData = [[OwnerRoomInfoData alloc] init];
            [ownerRoomInfoData setValuesForKeysWithDictionary:dict];
            
            [self.roomInfoArray addObject:ownerRoomInfoData];
        }
        
    }
    
}


@end

@implementation OwnerRoomInfoData



@end
